.class public Lcom/waiqin365/lightapp/kehu/RelationListActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/LinearLayout;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:Landroid/os/Handler;

.field private f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private g:Ljava/util/ArrayList;

.field private h:Lcom/waiqin365/lightapp/kehu/b/an;

.field private i:Z

.field private j:I

.field private k:I

.field private l:Ljava/util/HashMap;

.field private m:Lcom/waiqin365/lightapp/view/NoNetView;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->i:Z

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    const/16 v0, 0xa

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->k:I

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/RelationListActivity;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->k:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/RelationListActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->g:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/kehu/it;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/it;-><init>(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->e:Landroid/os/Handler;

    return-void
.end method

.method private a(I)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "page.currentPage"

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v0, "3"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "dealerId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    :goto_0
    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->showProgressDialog(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "page.recPerPage"

    const-string/jumbo v2, "10"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "menuViewAll"

    const-string/jumbo v2, "1"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "shortcutKey"

    const-string/jumbo v2, "all"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v0, "_token"

    const-string/jumbo v1, ""

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/a/a/bk;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/lightapp/kehu/a/a/bk;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->e:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/kehu/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/b;->start()V

    return-void

    :cond_1
    const-string/jumbo v0, "2"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v1, "storeId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/RelationListActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->i:Z

    return p1
.end method

.method private b()V
    .locals 4

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "cmId"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->c:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "tradeType"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->d:Ljava/lang/String;

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->l:Ljava/util/HashMap;

    const-string/jumbo v2, "tradeType"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "2"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const v1, 0x7f0800da

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const v0, 0x7f0c02fe

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->b:Landroid/widget/LinearLayout;

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->m:Lcom/waiqin365/lightapp/view/NoNetView;

    const v0, 0x7f0c02fd

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->g:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/an;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->g:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/kehu/b/an;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->h:Lcom/waiqin365/lightapp/kehu/b/an;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->h:Lcom/waiqin365/lightapp/kehu/b/an;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/an;->a(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->h:Lcom/waiqin365/lightapp/kehu/b/an;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/iu;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/iu;-><init>(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/iv;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/iv;-><init>(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/iw;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/iw;-><init>(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->c()V

    return-void

    :cond_0
    const v1, 0x7f080115

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/RelationListActivity;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->a(I)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->i:Z

    return v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->g:Ljava/util/ArrayList;

    return-object v0
.end method

.method private c()V
    .locals 1

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->i:Z

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->a(I)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Lcom/waiqin365/lightapp/kehu/b/an;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->h:Lcom/waiqin365/lightapp/kehu/b/an;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->b:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->m:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    return v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->k:I

    return v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/kehu/RelationListActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->j:I

    return v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c01da
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030077

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/RelationListActivity;->b()V

    return-void
.end method
